package com.cw.beans;

public class Scrap {
    // 报废表
    private int    asset_id;
    private float  residual_value;//残值
    private Asset  asset;

    public Scrap(int asset_id, float residual_value, Asset asset) {
        this.asset_id = asset_id;
        this.residual_value = residual_value;
        this.asset = asset;
    }

    public Scrap() {
    }

    public int getAsset_id() {
        return asset_id;
    }

    public void setAsset_id(int asset_id) {
        this.asset_id = asset_id;
    }

    public float getResidual_value() {
        return residual_value;
    }

    public void setResidual_value(float residual_value) {
        this.residual_value = residual_value;
    }

    public Asset getAsset() {
        return asset;
    }

    public void setAsset(Asset asset) {
        this.asset = asset;
    }

    @Override
    public String toString() {
        return "Scrap{" +
                "asset_id=" + asset_id +
                ", residual_value=" + residual_value +
                ", asset=" + asset +
                '}';
    }
}
